package subject.homework.zoosystrem.sons1;

import subject.homework.zoosystrem.father.*;
public class AnimalsOfParkCollection extends UserCollections {

    //园区
    private ParkInfo AnimalOfPark;

    public ParkInfo getAnimalOfPark() {
        return AnimalOfPark;
    }

    public void setAnimalOfPark(ParkInfo animalOfPark) {
        this.AnimalOfPark = animalOfPark;
    }


//    public String displayAllAnimals() {
//        String displayMessageString = "";
//        displayMessageString += this.AnimalOfPark.getParkName() + super.getAnimalTypeNum();
//        for(User currentUser:userList){
//            displayMessageString +=currentUser.getUserName();
//        }
//        return displayMessageString;
//    }
public String displayAllAnimals() {

    System.out.println(this.AnimalOfPark.getParkName() + super.getAnimalTypeNum()+"\n");
        for(UserAnimal currentUser:userList){
            System.out.println(currentUser.getUserName()+",");
            System.out.println(currentUser.getUserType()+",");
            System.out.println(currentUser.getAnimalNum()+"\n");
        }
        return null;
    }

}
